﻿using HiSport.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Core.Entity.Pay
{

    /// <summary>
    ///支付记录
    /// </summary>
    [SugarTable(null, "支付记录")]
    public class PayRecord: EntityBaseData
    {

        /// <summary>
        /// 订单ID
        /// </summary>
        [SugarColumn(ColumnDescription = "订单ID", DefaultValue = "0", IsNullable = false, Length = 64)]
        public long  OrderId { get; set; }


        /// <summary>
        /// 订单编号
        /// </summary>
        [SugarColumn(ColumnDescription = "订单编号", DefaultValue = "", IsNullable = false, Length = 64)]
        public string OrderNo { get; set; }


       /// <summary>
       /// 交易ID
       /// </summary>
       [SugarColumn(ColumnDescription = "交易ID", DefaultValue = "", IsNullable = true, Length = 64)]
        public string TransactionId { get; set; }


        /// <summary>
        /// 支付单号
        /// </summary>
        [SugarColumn(ColumnDescription = "支付单号", DefaultValue = "", IsNullable = false, Length = 64)]
        public string PayNo { get; set; }

       

        /// <summary>
        /// 支付金额
        /// </summary>
        [SugarColumn(ColumnDescription = "支付金额", DefaultValue = "0", ColumnDataType = "decimal(18,2)", IsNullable = false)]
        public decimal PayAmount { get; set; }

       
        /// <summary>
        /// 支付方式
        /// </summary>
        public PayTypeEnum PayType { get; set; }


        /// <summary>
        /// 支付记录状态
        /// </summary>
        [SugarColumn(ColumnDescription = "支付记录状态", DefaultValue = "0", IsNullable = false)]
        public PayRecordStateEnum PayState { get; set; }

    }
}
